package com.iwhalecloud.citybrain.flow.platform.manager.domain.repository;

import java.util.List;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.log.CommonOperateLogContentVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.log.CommonOperateLogForAddVo;
import com.iwhalecloud.citybrain.flow.platform.manager.domain.model.log.FlowCommonOperateLogVo;

/**
 * @author lilh
 * @date 2019-08-19 15:48
 */
public interface FlowCommonOperateLogRepository {

    /**
     * 新增
     *
     * @param entity 实体
     * @return 实体id
     */
    Long insertOperateLog(FlowCommonOperateLogVo entity);


    /**
     * 新增
     *
     * @param commonOperateLogForAddVo 基本信息
     * @param contentVo                内容
     * @return 实体id
     */
    Long insertOperateLog(CommonOperateLogForAddVo commonOperateLogForAddVo, CommonOperateLogContentVo contentVo);


    /**
     * 列表
     */
    List<FlowCommonOperateLogVo> listOperateLogs(String taskId);

}
